<div class="table-margin">
	<div class="table-header">
        <table class="table table-bordered">
	        <thead>
	            <tr>
	                <td class="w5 text-center">
	                    <input type="checkbox" 
	                    	   ng-model="master" 
	                    	   ng-mousedown="getDataID()" 
	                    	   ng-click="selectAll(master, tabVal)"
	                    	   >
	                </td>
	                <td class="w5 text-center">序号</td>
	                <td class="w10 text-center">机构名称</td>
	                <td class="w10 text-center">机构类型</td>
	                <td class="w10 text-center">性质</td>
	                <td class="w10 text-center">行业</td>
	                <td class="w10 text-center">地区(省/市)</td>
	                <td class="w10 text-center">状态</td>
	                <td class="w10 text-left">操作</td>
	            </tr>
	        </thead>		                            		                 		
        </table>
    </div>
    <div class="table-body">
	    <table class="table table-bordered table-header">

	        <tbody>

	            <tr ng-repeat="val in tabVal |orderBy:b+a | filter:institution_search" ng-class="{'active':$index%2!=0}">
	                
	                <td  class="w5 text-center">
	                    <input type="checkbox" 
	                    	   ng-checked="master" 
	                    	   ng-mousedown="getDataID()" 
	                    	   ng-click="select(val,bool)"
	                    	   ng-model="bool" 
	                    	   >
	                </td>
	                <td class="w5 text-center">{{ $index+1 }}</td>
	                <td class="w10 text-center">{{ val.institutionName }}</td>
	                <td class="w10 text-center">
						<span ng-show="val.institutionType==0">客户机构</span>
						<span ng-show="val.institutionType==1">代理商</span>
						<span ng-show="val.institutionType==2">应用提供商</span>
						<span ng-show="val.institutionType==3">供应商</span>
	                </td>
	                <td class="w10 text-center">{{ val.nature }}</td>
	                <td class="w10 text-center">{{ val.industry }}</td>
	                <td class="w10 text-center">
	                	<span ng-show="val.city!=null&&val.province!=null">{{ val.province }}/{{ val.city }}</span>
	                	<span ng-show="val.city==null">{{ val.province }}</span>
	                	<span ng-show="val.province==null">{{ val.city }}</span>
	                </td>
	                <td class="w10 text-center">
	                	<strong class="text-success" ng-show="val.enabled==1">启用</strong>
	                	<strong class="text-danger"  ng-show="val.enabled==0">禁用</strong>
	                </td>
	                <td class="w10 text-center icon-td">
	                     <span class="btn-i"
	                     	   title="所辖用户" 
	                     	   ui-sref="user.ownedUser"
	                     	   ng-click="owned_user($index)" 
	                     	   >
                            <img width="20px" src="../images/right-product/user.png">
                        </span>
	                    <span class="btn-i" 
	                    	  title="详情" 
	                    	  data-toggle="modal" 
	                    	  data-target="#details"
	                    	  ng-click="details($index)" 
	                    	  >
                            <img width="14px" src="../images/right-product/view.png">
                        </span>
                        <span class="btn-i" 
                        	  title="修改"  
                        	  data-toggle="modal" 
                        	  data-target="#edit"
                        	  ng-click="edit($index)" 
                        	  >
                            <img width="14px" src="../images/right-product/edit.png">
                        </span>
	                </td>
	            </tr>

	            <tr>
	                <td colspan="12" class="text-center" ng-hide="isNoData">暂无数据</td>
	            </tr>

	        </tbody>

	    </table>
	</div>    
</div>

